<?php
/**
 * Manages rules for an item
 * 
 */
class CompaniesController extends Controller {

   
    /*
     * Browse for items
     */
    public function browse(){
        
    }

    
    /*
     * Show a single item
     */
    public function show(){
  
	//Hämta resultatet
        $result = $this->model->createCompanies();
              
        $num_rows[1]	= count($result[1]);
	$num_rows[2]	= count($result[2]);
	$num_rows[3]	= count($result[3]);
        
        $antalCompanies = $num_rows[1]+$num_rows[2]+$num_rows[3];

        $this->set('antalCompanies',$antalCompanies);
        $this->set('result',$result);
        $this->set('num_rows',$num_rows);
    }
}
?>
